Release 10.1A: OpenEdge Development:
Java Open Clients
Setting and getting values on the SDOParameters object
An SDOParameters object in
com.progress.open4glcan be supplied as a parameter to the SDOResultSet factory method that allows you to control various ResultSet properties. You need to set only the values that differ from the defaults. The methods to set and get these values on the SDOParameters object follow.The following method sets the row ID of the first row to be fetched from the created and opened SDOResultSet:
A null
rowIdis equivalent to not callingsetRowIdentity()(also see thereOpenQuery(StringrowId) extended method in the "Miscellaneous management methods" section). Usually, it is more efficient to usesetRowIdentity()than to create the SDOResultSet and then call the extended method,absolute(String rowId), to reposition the cursor on the specified row.If you create the SDOResultSet in
PREFETCHscrolling mode, you cannot access rows before therowIdthat you set withsetRowIdentity(). For more information onPREFETCH, see the "Understanding SDOResultSet scrolling modes" section.The
rowIdvalue is equivalent to the value returned by the 4GLROWIDfunction and theSDOResultSet.getRowIdentity()method. For more information onROWID, see OpenEdge Development: Progress 4GL Handbook or the appropriate OpenEdge DataServer Guide for any DataServer accessed by the SmartDataObject. For more information on theSDOResultSet.getRowIdentity()method, see the "Miscellaneous management methods" section.The following method gets the row ID of the first row to be fetched from the created and opened SDOResultSet:
The following method sets the number of rows the scrolling mechanism fetches each time it accesses the AppServer:
The default is 200.
The following method gets the number of rows the scrolling mechanism fetches each time it accesses the AppServer:
The following method sets the
Statelessmode for the SDOResultSet:
Specify
stateastruefor a stateless SDOResultSet andfalsefor a non-stateless SDOResultSet. For more information, see the "Understanding SDOResultSet stateless mode" section.The following method gets the
Statelessmode for the SDOResultSet:
For more information, see the "Understanding SDOResultSet stateless mode" section.
The following method sets the scrolling mode for the SDOResultSet specified as a class constant in
com.progress.open4gl.SDOScrollingMode:
If the SDOResultSet is
Stateless, the default isSDOScrollingMode.PREFETCH; otherwise, the default isSDOScrollingMode.KEEP_ROWS. The other supported scrolling mode isSDOScrollingMode.FORWARD_ONLY. For more information, see the "Understanding SDOResultSet scrolling modes" section.The following method gets the scrolling mode specified for the SDOResultSet, returned as a class constant in
com.progress.open4gl.SDOScrollingMode:
For more information, see the "Understanding SDOResultSet scrolling modes" section.
The following method sets the maximum number of rows to be fetched when the scrolling mode is
SDOScrollingMode.PREFETCH:
The
setPrefetchMaxRows()method has no effect for scrolling modes other thanSDOScrollingMode.PREFETCH. The default for this mode is to get all the rows of the SDOResultSet. For more information, see the "Understanding SDOResultSet scrolling modes" section and the "Understanding SDOResultSet stateless mode" section.The following method gets the value for the maximum number of rows to be fetched when the scrolling mode is
SDOScrollingMode.PREFETCH:
For more information, see the "Understanding SDOResultSet scrolling modes" section and the "Understanding SDOResultSet stateless mode" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |